// api接口
var sql = require('../sql/sql');
module.exports = function (router) {
	router.get('/api/userlist', function (req, res) {
		var str = 'SELECT * FROM user WHERE id= 6'
		sql.query(str, null, function (rows, fields) {
			console.log('--------rows--------')
			console.log(rows)
			console.log('--------fields--------')
			// console.log(fields)
			res.send(JSON.stringify(rows))
		})
	})
};